<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>会员个人中心 - {$data['nikename']}</title>

    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="{$Think.const.RESOURCE}img/favicon.ico">
    <link href="{$Think.const.RESOURCE}css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/animate.css" rel="stylesheet">
    <link href="{$Think.const.RESOURCE}css/style.css?v=4.1.0" rel="stylesheet">
    <script type="text/javascript" src="{$Think.const.RESOURCE}js/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/home/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/home/js/xadmin.js"></script>
    <style>
        :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
            color: #b6b6b6; opacity:1;
        }

        ::-moz-placeholder { /* Mozilla Firefox 19+ */
            color: #b6b6b6;opacity:1;
        }

        input:-ms-input-placeholder{
            color: #b6b6b6;opacity:1;
        }

        input::-webkit-input-placeholder{
            color: #b6b6b6;opacity:1;
        }
    </style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg">
        <div style="display: block">
            <div >
                <div class="row">
                    <div class="col-md-6" style="width: 50%;text-align: right;">
                        <i class="fa fa-user" style="font-size: 80px;"></i>
                    </div>
                    <div class="col-md-5" style="width: 48%;text-align: left;margin-top: 20px;">
                        <p>用户ID : {$lists['accountid']}</p>
                        <h4 class="">当前会员昵称 : {$lists['nickname']}</h4>
                    </div>
                </div>
                <div class="row">
                    <div class="modal-body">
                        <style>
                            .member-btn-list1 span{
                                display: inline-block;
                                width: 45%;
                                text-align: right;
                                padding-right: 10px;
                                color: #959595;
                                line-height: 30px;
                            }
                        </style>
                        <div class="row member-btn-list member-btn-list1"  style="background-color: #efe5ce;padding: 20px;">
                            <div class="col-md-4">
                                <span>用户ID </span>: {$lists['gameid']}
                            </div>
                            <div class="col-md-4">
                                <span>用户昵称 </span>: {$lists['nickname']}
                            </div>
                            <div class="col-md-4">
                                <span>用户账号 </span> : ********
                            </div>

                            <div class="col-md-4">
                                <span>VIP等级 </span>: {$lists['viplevel']}
                            </div>
                            <div class="col-md-4">
                                <span>VIP经验值</span> : {$lists['experience']}
                            </div>
                            <div class="col-md-4">
                                <span>账号状态</span> :
                                <if condition="$lists['disablelogin'] eq '0'">
                                    <font style="color: #0fa117;">正常</font>
                                    <else />
                                    <font style="color: red">封号</font></if>
                            </div>
                        </div>
                        <div class="row member-btn-list member-btn-list1" style="background-color: #f7edd6;padding: 20px;">
                            <div class="col-md-6">
                                <span>注册时间</span>:{$lists['registertime']}
                            </div>
                            <div class="col-md-6">
                                <span>最后一次登陆时间</span> : {$lists['logintime']}
                            </div>
                            <div class="col-md-6">
                                <span>注册IP地址</span>:{$lists['registeraddr']}
                            </div>
                            <div class="col-md-6">
                                <span>最后一次登陆IP地址</span>:{$lists['lastloginaddr']}
                            </div>
                        </div>
                        <br>
                        <style>
                            .member-btn-list {
                                margin-top: 10px;
                                margin-bottom: 10px;
                                margin-left: -10px;
                            }
                            .member-btn-list a{
                                height: 40px;
                                line-height:30px;
                                /*border-radius: 40px;*/
                                font-size: large;
                            }
                            .col-md-2 {
                                width: 11.666667%;
                            }
                         
                        </style>

                        <div class="row member-btn-list">
                            <div class="col-md-12" style="text-align: center;">
                                <span style="margin-right: 80px;"><a  onclick="updatePwd( {$lists.accountid},'pwd')"  type="button"   class=" btn btn-warning ">修改登录密码</a></span>
                                <span style="margin-right: 80px;"><a onclick="openWin( {$lists.gameid},'disablelogin')"  type="button"  class=" btn btn-warning">&nbsp;封号&nbsp;&nbsp;&nbsp;</a></span>
                                <span><a onclick="openWin( {$lists.gameid},'kickOut' )"  type="button"   class=" btn btn-warning ">&nbsp;踢人&nbsp;&nbsp;&nbsp;</a></span>

                            </div>
                            <br>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</body>
<script>


    /////修改密码
    function updatePwd(accountid,parameter) 
    {
        var url="amend";
        layer.open({
              type: 2,
              title: '重置登陆密码',
              shadeClose: true,
              shade: 0.8,
              maxmin: true,
              area: ['800px', '350px'],
              content: '/member/'+url+'?id='+accountid+'&f='+parameter //iframe的url
        });
    }

    function openWin(accountid,url) 
    {       var  str =prompt("备注","");
            if(str){
                $.ajax({
                    type:"GET",
                    datatype:"json",
                    url:'/Member/'+url+'?id='+ accountid+'&content='+str,
                    success:function (data) {
                        if(data['code'] == 0){
                            layer.msg('请求已发出，请等待', {icon: 16,shade:0.5,time:1000,end:function () {
                                    layer.msg(data['msg'],{icon: 5});
                                }});
                        }else{
                            layer.msg(data['msg'], {icon: 16,shade:0.5,time:1000,end:function () {
                                    layer.msg('操作成功',{icon: 1})
                                }});
                        }

                    },
                    error:function () {
                        layer.msg("发错错误",{icon: 5})
                    }
                });
            }
    }

    ///扣除金币
    function openWins(accountid) {
        var url="kcmoney";
        layer.open({
              type: 2,
              title: '扣除金币',
              shadeClose: true,
              shade: 0.8,
              maxmin: true,
              area: ['800px', '50%'],
              content: '/member/'+url+'?accountid='+accountid //iframe的url
        }); 
    }

    //设置代理
    function design(gameid){
        var url="design";
        layer.open({
              type: 2,
              title: '设置代理',
              shadeClose: true,
              shade: 0.8,
              maxmin: true,
              area: ['800px', '50%'],
              content: '/member/'+url+'?gameid='+gameid //iframe的url
        }); 
    }
</script>
<script src="{$Think.const.RESOURCE}js/jquery.min.js?v=2.1.4"></script>
</html>